package com.gitee.wsl.common.chart.api

interface ViewportChangeListenerContain<L> {
    val viewportChangeListenerList :MutableList<L>

    fun addViewportChangeListener(listener: L){
        viewportChangeListenerList.add(listener)
    }

    fun removeViewportChangeListener(listener:L){
        viewportChangeListenerList.remove(listener)
    }

    fun clearViewportChangeListener(){
        viewportChangeListenerList.clear()
    }


}